package cn.cjxy.controller;

import cn.cjxy.domain.Student;
import cn.cjxy.service.IStudentService;
import cn.cjxy.service.impl.StudentServiceImpl;
import cn.cjxy.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@RequestMapping("/student_transform")
@RestController
public class StudentController_transform {


    //导入service层对象
    @Autowired
    private IStudentService studentService;

    /**
     * 修改
     * @param student
     * @return
     */
    @PutMapping
    public R<Void> update(@RequestBody Student student) {
        //调用service层处理业务
        studentService.update(student);
        //响应成功
        return R.ok();
    }



}
